package work.dao;

import work.pojo.User;

public interface UserDao {
    int add(User user);

    int deleteById(int id);

    User findByUsername(String name);

    User findByUsernameAndPassword(String username, String password);

    User findByCode(String code);

    void updateStatus(int id);

}